Shell.Execute Method

Executes a one-line Unix or DOS shell command. Used in Synchronous mode.

Syntax

Shell.Execute Command, [Parameters]


Parameters

Command

String

Parameters (Optional)

String


If you are in Synchronous mode (mode 0), the Result property will contain the results. The Command parameter is the path/name of the executable to run and the second parameter contains the arguments to pass to the executable. You can specify the executable without passing a second parameter. On Windows, if the path/name of the executable contains spaces and you want to pass arguments to it, it is safer to separate the two.